<template>
  <div class="about">
    <h1>我是子组件</h1>
<h1>我是父级传过来的参数：{{value}}</h1>
<button @click="$emit('input',value+1)">+</button>
<slot></slot>
  </div>
</template>
<script>
export default{
  name:'About',
  props:['value']
}
</script>
<style>
.about{
  background-color: cadetblue;
}
</style>
